package com.yxw.yxnet_cd_center.customer_service.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yxw.yxnet_cd_center.customer_service.dto.UserChooseDTO;
import com.yxw.yxnet_cd_center.customer_service.entity.YxCsUserEntity;
import com.yxw.yxnet_cd_center.customer_service.vo.UserChooseVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 人员管理
 * @author liuxin
 * @date 2023.09.176
 */
@Repository
public interface UserMapper extends BaseMapper<YxCsUserEntity> {

    /**
     * 客服人员选择
     * @param page
     * @param dto
     * @return
     */
    List<UserChooseVo> getChooseUserList(Page<UserChooseVo> page,@Param("dto") UserChooseDTO dto);

    List<String> getUserGroupNames(Long userId);

    List<String> getUserFlockNames(Long coustId);

}
